package com.topboya.linker.ui.activity;

import android.widget.ImageView;
import android.widget.RelativeLayout;

import com.bumptech.glide.Glide;
import com.topboya.linker.R;
import com.topboya.linker.ui.base.Presenter.BasePresenter;
import com.topboya.linker.ui.base.activity.BaseActivity;

public class PictureDisplayActivity extends BaseActivity {

    private static final String TAG = "PictureDisplayActivity";
    private ImageView img_dispaly;
    private  String filepath;
    private RelativeLayout rl_root;
    @Override
    protected int getLayoutId() {

        return R.layout.activity_pic_display;
    }

    @Override
    protected void initView() {

        img_dispaly = findViewById(R.id.img_dispaly);
        rl_root = findViewById(R.id.rl_root);

    }

    @Override
    protected void initData() {

        filepath = getIntent().getStringExtra("filepath");
        Glide.with(this).load(filepath).into(img_dispaly);


    }

    @Override
    protected void initListener() {

        rl_root.setOnClickListener(v -> { finish(); });
    }

    @Override
    protected BasePresenter createPresenter() {

        return null;
    }
}
